import { defineStore } from 'pinia'

export const useMain = defineStore('main', {
    state: () => ({
        // 控制菜单收缩
        isCollapsed: false,
        Tabs: [] as string[],
        isActive: '/dashboard/worktable',
        tabsIdx: 0,//控制顶部菜单
    }),
    persist: {
        key: "pinia-TabsArr", //指定持久化存储的名称
    }
})
